<div class="tableform">
<{if $data}>
<h4>基本信息</h4>
<table class="gridlist" cellpadding="0" cellspacing="0">
    <thead>
    <tr>
        <th>唯一码</th>
        <th>基础物料名称</th>
        <th>基础物料编码</th>
        <th>保质期编码</th>
        <th>所在仓库</th>
        <th>状态</th>
    </tr>
    </thead>

    <tbody>
    <tr>
        <td><{$data.serial_number}></td>
        <td><{$data.product_name}></td>
        <td><{$data.bn}></td>
        <td><{if $data.expire_bn}><{$data.expire_bn}><{else}> - <{/if}></td>
        <td><{$data.branch_name}></td>
        <td><{$data.status}></td>
    </tr>
    </tbody>
</table>
<{else}>
	<{if $tag}>
		<div class="notice">没有查到对应的商品唯一码信息</div>
	<{/if}>
<{/if}>

<{if $logData}>
<h4>出入库日志</h4>
<table class="gridlist" cellpadding="0" cellspacing="0">
    <thead>
    <tr>
        <th>操作类型</th>
        <th>申请售后</th>
        <th>操作时间</th>
        <th>操作人</th>
        <th>单据类型</th>
        <th>单据编号</th>
        <th>唯一码状态</th>
    </tr>
    </thead>

    <tbody>
    <{foreach from=$logData item=log}>
    <tr>
        <td><{$log.act_type}></td>
        <td><{foreach from=$log.orderBn item=orderBn key=key}>
            <{$orderBn}><{if $log.bill_type=='发货单'}><a href="javascript:void(0);" onclick="new Dialog('index.php?ctl=admin_return&act=apply&app=ome&p[0]=<{$key}>',{width:700,height:450,title:'订单<{$orderBn}>的售后申请'});">申请</a><{/if}><br />
        <{/foreach}></td>
        <td><{$log.act_time|date:"Y-m-d H:i"}></td>
        <td><{$log.act_owner}></td>
        <td><{$log.bill_type}></td>
        <td><{$log.bill_no}></td>
        <td><{$log.serial_status}></td>
    </tr>
    <{/foreach}>
    </tbody>
</table>
<{/if}>
</div>